home *** CD-ROM | disk | FTP | other *** search
- Path: ix.netcom.com!JAMESCHA
- From: jamesch@ix.netcom.com (James Chamblin)
- Newsgroups: comp.sys.cbm
- Subject: Re: Programming [RASTERS] question...
- Date: 12 Jan 1996 19:39:19 GMT
- Organization: Netcom
- Message-ID: <4d6dd7$sfg@ixnews6.ix.netcom.com>
- References: <Ikxf2T200YUtAGNFEu@andrew.cmu.edu>
- NNTP-Posting-Host: ix-orl1-21.ix.netcom.com
- X-NETCOM-Date: Fri Jan 12 11:39:19 AM PST 1996
- X-Newsreader: News Xpress Version 1.0 Beta #4
-
- In article <Ikxf2T200YUtAGNFEu@andrew.cmu.edu>,
- William Nolan <wnolan+@andrew.cmu.edu> wrote:
- >Okay even though I don't see too many posts about this sort of stuff,
- >I'll try anyway ... I'm sure some veteran demo coders read this stuff
- >:).
- >
- >I'm still trying to learn demo coding stuff, and I am working on a
- >text scroller. A real simple one, just one line at the bottom of the
- >screen that goes from right edge to left edge. I'm using raster
- >interrupts to do it, and everything *seems* okay... one one interrupt
- >(at line 0) I reset the horiz scroll reg to 0. Then at about line 5,
- >I decrement the value for the horiz scroll (NOT the actual reg
- >itself), check if it's <0, if so, reset to 7 and shift the video
- >memory at the bottom line one character left. Then, on line 241, I
- >set the horiz scroll pos reg to the value calculated before. So
- >what's the problem, you ask? Well ... everything works, except I am
- >getting massive flickering every 8 scroll steps. I'm not totally
- >clear on how the raster works, so maybe I am coarse scrolling too
- >soon? Also, I set the screen to 38 column mode, but it keeps getting
- >out of it. But the weird thing is, every fourth or fifth time I
- >change something and assemble it, it works beautifully. I am using
- >Turbo Assembler on the PC64 emulator by the way. OH yeah I have two
- >sprites at the bottom of the screen as well, but these shouldn't cause
- >a problem right? The other weird thing is if I compile the source to
- >object code, and then load and run that from C= Basic, it scrolls, but
- >switches between multi-color mode and hi-res mode every 2 scroll
- >steps. Something weird is going on!!! What am I doing wrong?
- >
-
- This is simple Demo stuff. Sounds like you are masking the scroll
- register incorrectly and changing the values of other bits. If you
- send me the source code, I could probably find where the problem is for
- you. (Better idea, if the source is short, post it here because there
- are many here that can help.)
-